package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface PermissionService {
   public List<Role> findAllRole();

   public void add(Permission permission, Integer[] roleIds);

   public PageResult findPage(QueryPageBean pageBean);

   public Permission findById(Integer id);

   public List<Integer> findRoleIdsByPermissionId(Integer permissionId);

   public void edit(Permission permission, Integer[] roleIds);

   public void delete(Integer id);
}
